]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/accessibility: Pass tracked object to connectObject() calls
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 3 Sep 2026 17:17:44 +0000 (19:17 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 13 Sep 2026 17:39:10 +0000 (19:39 +0200)
Otherwise the handler will be associated with the `globalThis`
object and never get disconnected automatically.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4382>

js/ui/status/accessibility.js

index 7747963691611e5295d0a4abd3bdffcbeace8201..c001b0c475b97752027483c8f8aebf5a76957570 100644 (file)
@@ -201,7 +201,7 @@ class LargeTextToggle extends QuickToggle {
             this.block_signal_handler(toggledId);
             this._updateChecked();
             this.unblock_signal_handler(toggledId);
-        });
+        }, this);
         this._settings.bind_writable(KEY_TEXT_SCALING_FACTOR,
             this, 'reactive',
             false);